package com.ruoyi.lvlian.domain;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.NotNull;

@Data
@ToString
@ApiModel(value = "跟车方", description = "跟车方")
public class InvoiceInfoPaymentRef {
    private String id;
    @NotNull(message = "发票id不能为空")
    private String invoiceId;

    @ExcelProperty("发票号码")
    private String invoiceNum;

    @NotNull(message = "支付id不能为空")
    private String paymentId;

    @ExcelProperty("对应交易流水号")
    private String paymentNum;

    @ExcelProperty("交易流水金额")
    private Double  transactionAmount;

    @ExcelProperty("本次支付对应的发票金额")
    private Double payAmount;

    @ExcelProperty("发票金额")
    private Double fapiaoAmount;

    @ApiModelProperty(value = "公司组织编码必填", required = true) // 注意required=true只是给Swagger看的
    @NotNull(message = "公司组织编码不能为空") // 这是实际的验证注解
    @ExcelProperty("所属公司编码")
    private String orgCode;


    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期 yyyy-MM-dd")
    private String createDate;

    @ApiModelProperty(value = "回单类型：1收款回单 2付款回单")
    private String paymentType;

}



